import { Component, OnInit } from '@angular/core';

import { UsermanegeService } from '../../../DM/usermanege.service';
@Component({
  selector: 'app-user-steps',
  templateUrl: './user-steps.component.html',
  styleUrls: ['./user-steps.component.css']
})
export class userStepsComponent implements OnInit {
  _currentStep: number = 0;

  constructor(
    private usermanegeService: UsermanegeService
  ) { }

  ngOnInit() {
    this.usermanegeService.stepsEmit.subscribe((currentStep: number) => { 
      this._currentStep = currentStep;
      console.log(this._currentStep);
    });
  }

}
